package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Getter
@Setter
@ToString
public class DynamicComment extends BaseDomain {
    // 发表的动态对象
    private UserDynamic dynamic;
    //评论的人
    private User user;
    //评论的时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    // 评论的内容
    private String content;
    // 评论的动态
    private Integer state;
    // 子评论
    private DynamicComment parent;
    //评论的状态  已读/未读
    private Integer type;

}